package com.demo.util;

public class Demo3 {

    public static void main(String[] args) {
        Ticket ticket = new Ticket();
        Thread t1 = new Thread(ticket , "一号");
        Thread t2 = new Thread(ticket , "二号");
        Thread t3= new Thread(ticket , "三号");
        Thread t4= new Thread(ticket , "四号");
        t1.start();
        t2.start();
        t3.start();
        t4.start();
    }
}
